import request from "@/utils/request";

export const getMenuList = params => {
    return request({
      url: '/menus/treeList', 
      params
    })
} 

export const addMenu = data => {
    return request({
      url: '/menus/update', 
      method: 'POST',
      data
    })
} 
  
export const getMenuDeail = params => {
    return request({
      url: '/sys/menu/detail', 
      params
    })
} 

export const editMenu = data => {
    return request({
      url: '/sys/menu/edit', 
      method: 'POST',
      data
    })
} 

export const deleteMenu = params => {
    return request({
      url: '/menus/delete', 
      params
    })
} 